package cn.net.isir.entity.dto;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author liuxubo
 * @filename TemplateMsgData.java
 * @package cn.net.isir.entity.dto
 * @email lxb@isir.net.cn
 * @date 2019/01/02
 * @comment
 * @since 1.8
 */
public class TemplateMsgData {
    /**
     * 店铺名称
     */
    private String shopName;
    /**
     * 排队号码
     */
    private String serialNo;
    /**
     * 排队时间
     */
    private String servingTime;
    /**
     * 跳转路径页面
     */
    private String openPage;
    /**
     * 备注
     */
    private String comment;

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getServingTime() {
        return servingTime;
    }

    public void setServingTime(String servingTime) {
        this.servingTime = servingTime;
    }

    public String getOpenPage() {
        return openPage;
    }

    public void setOpenPage(String openPage) {
        this.openPage = openPage;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public JSONObject toTempString() {
        JSONObject _data = new JSONObject();

        JSONObject keyword1 = new JSONObject();
        keyword1.put("value",shopName);
        keyword1.put("color", "#4a4a4a");
        _data.put("keyword1",keyword1);

        JSONObject keyword2 = new JSONObject();
        keyword2.put("value", serialNo);
        keyword2.put("color", "#9b9b9b");
        _data.put("keyword2",keyword2);

        JSONObject keyword3 = new JSONObject();
        keyword3.put("value", servingTime);
        keyword3.put("color", "#9b9b9b");
        _data.put("keyword3",keyword3);

        JSONObject keyword4 = new JSONObject();
        keyword4.put("value", comment);
        keyword4.put("color", "#9b9b9b");
        _data.put("keyword4",keyword4);

        return _data;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
